#ifndef __FIXED_POINT_H__
#define __FIXED_POINT_H__

#define QDOT 16
#define QONE (1UL << QDOT)
#define QPRE 6
#define QPOST 11


#define Q_MULT(x, y) (((x >> 8) * y) >> 8)
//#define Q_DIV(x, y) (((x << 0) / (y>>8)) << 8)
#define Q_DIV(x, y) (((x << 11) / y) << 5)

#endif //__FIXED_POINT_H__
